Skip to content

Conversation

@AmrElsayyad
Copy link
Collaborator

This PR adds a new CI workflow to our GitHub Actions.

Workflow Details

The workflow includes the following key features:

  • Uses Ubuntu as the runner
  • Sets up JDK 17
  • Caches Maven packages for faster builds
  • Sets up a MySQL database for testing
  • Decodes and uses a secret APPLICATION_TEST_PROPERTIES for test configuration
  • Uploads test coverage to Codecov

Required Actions

Before merging this PR, please ensure the following steps are completed:

  1. Encode the application-test.properties file:

    cd src/main/resources/
    base64 application-test.properties > application-test.properties.base64
    
  2. Add the encoded content as a GitHub Secret:

    • Go to the repository settings
    • Navigate to "Secrets and variables" > "Actions"
    • Click "New repository secret"
    • Name: APPLICATION_TEST_PROPERTIES
    • Value: [Paste the content of application-test.properties.base64]
  3. Set up Codecov:

    • Visit https://about.codecov.io/
    • Set up Codecov for this repository
    • Add the Codecov token as a GitHub Secret named CODECOV_TOKEN

Please review the workflow and let me know if any changes are needed.

Signed-off-by: Amr Elsayyad <amrelsayyad96@gmail.com>
@abhi9720 abhi9720 self-assigned this Sep 8, 2024
@abhi9720 abhi9720 added the enhancement Improves or refines label Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improves or refines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants